package model;

import com.alibaba.dingtalk.openapi.demo.OApiException;
import com.alibaba.dingtalk.openapi.demo.utils.HttpHelper;
import com.alibaba.fastjson.JSONObject;
import com.google.gson.JsonObject;

public class SendToGroup {
	 public static void send(String media_id) throws OApiException {
		 
	        JsonObject object = new JsonObject();
	        object.addProperty("chatid", "chat69d0fceafd16550c30e09b616ccc64b8");
	        object.addProperty("msgtype", "file");
	        JsonObject object1 = new JsonObject();
	        object1.addProperty("media_id", media_id);
	        object.add("file", object1);
	        System.out.print(object.toString());
	        HttpHelper httphelper=new HttpHelper();
	        httphelper.post(object);
	    }
}
